package org.wjw.auth.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wjw.auth.domain.Menu;
import org.wjw.auth.mapper.MenuMapper;
import org.wjw.auth.service.IMenuService;
import org.wjw.base.service.impl.BaseServiceImpl;

import java.util.List;
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Long> getMenuIds() {
        return menuMapper.getMenuIds();
    }

    @Override
    public List<Menu> getMenuTree() {
        List<Menu> menus=menuMapper.getMenuTree();
        return menus;
    }


    @Override
    public List<Menu> getMenuTreeByEmployeeId(Long employeeId) {
        return menuMapper.getMenuTreeByEmployeeId(employeeId);
    }
}
